package com.chzn.config;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.context.annotation.Import;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @Description
 * @Author houchenkai
 * @Created Date: 2020/10/22 18:36
 * @ClassName
 */

@Import({ImportObj.class, MyImportSelector.class, MyDeferredImportSelector.class})
@EnableTransactionManagement
@EnableAspectJAutoProxy
public class AppConfigTwo {

	public static void main(String[] args) {
		AnnotationConfigApplicationContext ac = new AnnotationConfigApplicationContext(AppConfigTwo.class);
		ImportSelectorObj bean = ac.getBean(ImportSelectorObj.class);
		System.out.println(bean);
	}


}

